#!/bin/bash
cp -r /www/dist/img /www/img_backup
npm run build
rm -rf /www/dist
mv dist /www/
yes | cp -r /www/img /www/dist/ &>/dev/null yes | cp -r /www/img /www/dist/ &>/dev/null
cd backend/
pm2 restart app.js
yes | cp -r /www/img_backup/* /www/img/
